const obj1 = {
  a: 10,
  b: 20,
  sum () {
    return this.a + this.b
  }
}

console.log(obj1)

const obj2 = new Object({
  a: 10,
  b: 20,
  sum () {
    return this.a + this.b
  }
})

console.log(obj2)

const obj3 = new Object(obj1)
console.log(obj1 === obj3) // true

const obj4 = Object.create(null)
const obj5 = {}
const obj6 = Object.create({})
const obj7 = Object.create({
  a: 10,
  b: 20,
  sum () {
    return this.a + this.b
  }
})
console.log(obj4, obj5, obj6, obj7)